<?php
//var_dump($_POST);
$result = array(
	"errno"=>0,
  "items"=>array(
      array(
        'year_month'=>'2016-02',
        'year_month_days'=>array(
					array(
						'year_month_day'=>'2016-02-05',
						"price"=>"150",
						"child_price"=>"140",
            "id"=>"3826",
						"stock"=> "4"
					),
					array(
						'year_month_day'=>'2016-02-13',
						"price"=>"160",
						"child_price"=>"150",
            "id"=>"3827",
						"stock"=> "5"
					),
					array(
						'year_month_day'=>'2016-02-15',
						"price"=>"150",
						"child_price"=>"140",
            "id"=>"3828",
						"stock"=> "3"
					),
        )
      ),
			array(
        'year_month'=>'2016-06',
        'year_month_days'=>array(
					array(
						'year_month_day'=>'2016-06-05',
						"price"=>"160",
						"child_price"=>"150",
            "id"=>"3829",
						"stock"=> "3"
					),
					array(
						'year_month_day'=>'2016-06-13',
						"price"=>"150",
						"child_price"=>"140",
            "id"=>"3830",
						"stock"=> "5"
					),
					array(
						'year_month_day'=>'2016-06-15',
						"price"=>"150",
						"child_price"=>"140",
            "id"=>"3831",
						"stock"=> "2"
					),
        )
      ),
			array(
        'year_month'=>'2016-07',
        'year_month_days'=>array(
					array(
						'year_month_day'=>'2016-07-05',
						"price"=>"180",
						"child_price"=>"170",
            "id"=>"3832",
						"stock"=> "2"
					),
					array(
						'year_month_day'=>'2016-07-13',
						"price"=>"180",
						"child_price"=>"170",
            "id"=>"3833",
						"stock"=> "2"
					),
					array(
						'year_month_day'=>'2016-07-15',
						"price"=>"180",
						"child_price"=>"170",
            "id"=>"3834",
						"stock"=> "1"
					),
        )
      ),
  )
);
$jsonstring = json_encode($result);
echo $jsonstring;
?>
